<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>批量插入</title>
<link rel="stylesheet" href="<%=path %>/js/jquery-easyui/themes/default/easyui.css"/>
<link rel="stylesheet" href="<%=path %>/css/site_main.css"/>
<link rel="stylesheet" type="text/css" href="<%=path %>/js/jquery-easyui/themes/icon.css">
<script type="text/javascript" src="<%=path %>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=path %>/js/site_easyui.js"></script>
</head>
<body>
	<div>
		<div style="height: 50px;"></div>
		<form id="addsForm" >
			<c:forEach items="${students }" var="stu">
				<div style="margin-bottom:20px; padding-left: 200px; ">
					<input name="stuid" value="${stu.getIntenid()   }" type="hidden" >
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<span style="font-size: 13px;">姓名：</span><input class="easyui-textbox" disabled="disabled" value="${stu.getIntenname() }" style="font-size:15px; width:100px;height:32px">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<span style="font-size: 13px;">分数：</span><input class="easyui-textbox" name="score" style="font-size:15px; width:100px;height:32px">
				</div>
			</c:forEach>
			<br/>
			<div style="margin-left: 500px;" >
				<span style="font-size: 13px;">科目：</span><input class="easyui-textbox" id="subject" name="subject" style="font-size:15px; width:100px;height:32px">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:(0);" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="adds();" style="width:100px">提交</a>
			</div>
		</form>
	</div>
	<br/>
	<div style="padding-left: 70%;"><a href="<%=path %>/student/all" class="easyui-linkbutton">返回</a></div>
	
	<!-- //////////////////////////////////////////////////////////////////// -->
	
	<script type="text/javascript">
		function adds(){
			var score = $(".score");
			var kemu = $("#subject");
			alert(kemu);
			$.post('batchSave',$("#addsForm").serialize(),"JSON");
			$("#addsForm").form("clear");
		}
	</script>
	
</body>
</html>